package day6;

import java.io.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileRead3 {
    public static void main(String[] args) {
        try {
//            BufferedReader br=new BufferedReader(new FileReader("F:/java76/yangshuo/名单.txt"));
            InputStreamReader in=new InputStreamReader(new FileInputStream("F:/java76/yangshuo/名单.txt"),"GBK");
            BufferedReader br=new BufferedReader(in);

            String str=null;
            while ((str=br.readLine())!=null){
                System.out.println(str.length()+">>>>"+str);
            }
            br.close();
        } catch (IOException  e) {
            e.printStackTrace();
        }
    }
}
